
package cn.edu.scau.cmi.hombio.service;

import cn.edu.scau.cmi.hombio.domain.Pig;
import cn.edu.scau.cmi.hombio.domain.Task;
import cn.edu.scau.cmi.hombio.domain.TaskPig;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for TaskPig entities
 * 
 */
public interface TaskPigService {

	/**
	* Save an existing Pig entity
	* 
	 */
	public TaskPig saveTaskPigPig(Integer id, Pig related_pig);

	/**
	* Return all TaskPig entity
	* 
	 */
	public List<TaskPig> findAllTaskPigs(Integer startResult, Integer maxRows);

	/**
	* Delete an existing Pig entity
	* 
	 */
	public TaskPig deleteTaskPigPig(Integer taskpig_id, Integer related_pig_id);

	/**
	* Delete an existing Task entity
	* 
	 */
	public TaskPig deleteTaskPigTask(Integer taskpig_id_1, Integer related_task_id);

	/**
	* Save an existing TaskPig entity
	* 
	 */
	public void saveTaskPig(TaskPig taskpig);

	/**
	* Load an existing TaskPig entity
	* 
	 */
	public Set<TaskPig> loadTaskPigs();

	/**
	* Return a count of all TaskPig entity
	* 
	 */
	public Integer countTaskPigs();

	/**
	* Save an existing Task entity
	* 
	 */
	public TaskPig saveTaskPigTask(Integer id_1, Task related_task);

	/**
	* Delete an existing TaskPig entity
	* 
	 */
	public void deleteTaskPig(TaskPig taskpig_1);

	/**
	 */
	public TaskPig findTaskPigByPrimaryKey(Integer id_2);
}